[global_tags]
  uk_id = "${ukId}"
  node_ip = "${nodeIp}"

[agent]
  interval = "10s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000

[[outputs.sql]]
  driver = "clickhouse"
  # tcp://host1:9000?username=user&password=qwerty&database=clicks&read_timeout=10&write_timeout=20&alt_hosts=host2:9000,host3:9000
  data_source_name = "tcp://192.168.199.130:9000?database=default"
  table_template = "CREATE TABLE IF NOT EXISTS {TABLE}({COLUMNS}) ENGINE = MergeTree() ORDER by (timestamp)"
  table_exists_template = "SELECT 1 FROM {TABLE} LIMIT 1"
  [outputs.sql.convert]
  conversion_style     = "literal"
  integer              = "Int64"
  text                 = "String"
  timestamp            = "DateTime"
  defaultvalue         = "String"
  unsigned             = "UInt64"
  bool                 = "UInt8"
  real                 = "Float64"